home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(this._y <= 561)
- {
- this._y += 8;
- }
- else
- {
- _global.mojo -= 2;
- this._x = random(26) * 10 + 30;
- this._y = - random(500) - 500;
- }
- if(this.hitTest(_parent.drag) and _global.die == false)
- {
- _parent.drag.gotoAndPlay("die");
- _parent.shak.gotoAndPlay(1);
- this._x = random(26) * 10 + 30;
- this._y = - random(500) - 500;
- _parent.score -= 100;
- }
- if(this.hitTest(_parent.shot1))
- {
- _parent.shot1.gotoAndStop(1);
- _global.kills += 1;
- _parent.shak.gotoAndPlay(1);
- _parent.attachMovie("t1_fader","fader1",100);
- _parent.fader1._x = this._x;
- _parent.fader1._y = this._y;
- _parent.fader1._xscale = 50;
- _parent.fader1._yscale = 50;
- _parent.score += 100;
- this._x = random(26) * 10 + 30;
- this._y = - random(500) - 500;
- }
- if(_global.bosstime > 0)
- {
- this.gotoAndStop("exit");
- }
- }
-